package com.iqiyi.game.ams.infrastructure.app;

import lombok.Getter;

/**
 * @author hanbaoyu
 *
 * RuntimeException springboot 会进行事务回滚
 */

@Getter
public class AppException extends RuntimeException {
    private Integer code;

    public AppException(Integer code, String message) {
        super(message);
        this.code = code;
    }

    public AppException(String message) {
        super(message);
        this.code = ResponseEnum.ERROR.getCode();
    }
}
